﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YwhLib
{
    /// <summary>
    /// 楼栋
    /// </summary>
    [FreeSql.DataAnnotations.Index("building_phaseno_buildingno", "PhaseNo,BuildingNo", true)]
    public class Building
    {
        /// <summary>
        /// 期号
        /// </summary>
        public int PhaseNo { get; set; }

        /// <summary>
        /// 期号字符
        /// </summary>
        [FreeSql.DataAnnotations.Column(IsIgnore = true)]
        public string PhaseNoS { get { return PhaseNo.ToString(); } }

        /// <summary>
        /// 楼号
        /// </summary>
        public int BuildingNo { get; set; }

        /// <summary>
        /// 楼号字符
        /// </summary>
        [FreeSql.DataAnnotations.Column(IsIgnore = true)]
        public string BuildingNoS { get { return BuildingNo.ToString(); } }

        /// <summary>
        /// 单元数量
        /// </summary>
        public int UnitNum { get; set; }
    }
}
